//package com.ankicoo.common.filter;
//
//import java.io.IOException;
//import javax.servlet.Filter;
//import javax.servlet.FilterChain;
//import javax.servlet.FilterConfig;
//import javax.servlet.ServletException;
//import javax.servlet.ServletRequest;
//import javax.servlet.ServletResponse;
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//import javax.servlet.http.HttpServletResponseWrapper;
//
///**
// * description:  url 拦截处理
// *
// * @author : qcyang
// * @date :  2021/6/24 15:34
// */
//public class UrlFilter implements Filter {
//    @Override
//    public void init(FilterConfig filterConfig) throws ServletException {
//    }
//
//    @Override
//    public void destroy() {
//    }
//
//    @Override
//    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
////        HttpServletRequest httpRequest = (HttpServletRequest)request;
////        HttpServletResponseWrapper httpResponse = new HttpServletResponseWrapper((HttpServletResponse) response);
////        System.out.println(httpRequest.getRequestURI());
////        String path=httpRequest.getRequestURI();
////        if(path.contains("/ankicoo")){
//////            path = path.replace("/ankicoo","");
//////            path="/ankicoo/auth"+path;
////            httpRequest.getRequestDispatcher(path).forward(request,response);
////        }
////        else {
////            chain.doFilter(request,response);
////        }
//    }
//}
